package com.zp.base.service;

import com.zp.base.entity.bo.ClinicIndexBo;
import com.zp.base.entity.vo.ClinicIndexVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 号别Service接口
 *
 * @author zhang peng
 * @date 2023-01-15
 */
public interface IClinicIndexService {

    /**
     * 查询号别
     */
    ClinicIndexVo queryById (String clinicIndexId);

    /**
     * 查询号别列表(分页)
     */
    TableDataInfo<ClinicIndexVo> queryPageList (ClinicIndexBo bo, PageQuery pageQuery);

    /**
     * 查询号别列表(不分页)
     */
    List<ClinicIndexVo> queryList (ClinicIndexBo bo);

    /**
     * 修改号别
     */
    Boolean insertByBo (ClinicIndexBo bo);

    /**
     * 修改号别
     */
    Boolean updateByBo (ClinicIndexBo bo);

    /**
     * 校验并批量删除号别信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);
}
